package com.juphoon.oauth.oauth.store;

import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.security.oauth2.common.OAuth2AccessToken;
import org.springframework.security.oauth2.provider.OAuth2Authentication;
import org.springframework.security.oauth2.provider.token.store.redis.RedisTokenStore;
import org.springframework.stereotype.Component;

/**
 * @author rongbin.huang
 * @create 2018-06-27 下午10:48
 **/
public class JRedisTokenStore extends RedisTokenStore {

    public JRedisTokenStore(RedisConnectionFactory connectionFactory) {
        super(connectionFactory);
    }

    @Override
    public OAuth2AccessToken getAccessToken(OAuth2Authentication authentication) {
        return null;
    }

    public OAuth2AccessToken getAccessToken2(OAuth2Authentication authentication) {
        return super.getAccessToken(authentication);
    }


}
